import string
L=[7,-8,5,4,0,-2,-5]
fi1=list(filter(lambda x:x>0,L))
fi2=list(filter(lambda x:x<=0,L))
fi1=sorted(fi1)
fi2=sorted(fi2,reverse=True)
print(fi1+fi2)
s='asdf234GDSdsf231'
list1=[]
for i in s:
    if i.islower():
        i=(0,0,i)
        list1.append(i)
    elif i.isupper():
        i=(0,1,i)
        list1.append(i)
    elif int(i)%2!=0:
        i=(1,0,i)
        list1.append(i)
    elif int(i)%2==0:
        i=(1,1,i)
        list1.append(i)
one=sorted(list1,key=lambda x:(x[0],x[1],x[2]))
# one=list(filter(lambda x :x[2].isstr,one))

print(one)

